package com.design.found.factory.examine;

/**
 * @ProjectName: design
 * @Package: com.design.found.factory.examine
 * @ClassName: Test
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/5/13 0013 14:39
 */
public class Test {
    public static void main(String[] args) {
        RoleAbstractFactory factoryProducer =FactoryProducer.getFactory();
        Role tourist=  factoryProducer.getRole("Tourist");
        tourist.login();
        tourist.register();
        tourist.pass(3);
        tourist.reject(4,"看你不爽");
        Role driver=  factoryProducer.getRole("Driver");
        driver.login();
        driver.register();
        driver.pass(1);

    }
}
